import ProRequest from '@/util/ProRequest'


export function getFeedbackList(params){
    return ProRequest({
        url: '/feedback/list',
        method: 'get',
        params
    })
}


export function addFeedback(data){
    return ProRequest({
        url: '/feedback/add',
        method: 'post',
        data
    })
}


export function updateFeedback(data){
    return ProRequest({
        url: '/feedback/update',
        method: 'post',
        data
    })
}


export function deleteFeedback(id){
    return ProRequest({
        url: '/feedback/delete/'+id,
        method: 'post'
    })
}

export function getFeedbackById(id){
      return ProRequest({
             url: '/feedback/getById/'+id,
             method: 'get'
         })
}

export function batchDeleteFeedback(ids){
    return ProRequest({
        url: '/feedback/batchDelete',
        method: 'post',
        data: ids
    })
}


export function exportFeedBack(){
    return ProRequest({
        url: '/feedback/export/feedback',
        method: 'get',
        responseType: 'blob'
    })
}
